﻿using System;

class PrintNNumbers
{
    static ConsoleColor GetRandomColor(int action)
    {
        ConsoleColor color= new ConsoleColor();
        switch (action)
        {
            case 1:
                color=ConsoleColor.Blue;
                break;
            case 2:
                color = ConsoleColor.Red;
                break;
            case 3:
                color = ConsoleColor.Green;
                break;
            case 4:
                color = ConsoleColor.Yellow;
                break;
            case 5:
                color = ConsoleColor.Magenta;
                break;
            case 6:
                color = ConsoleColor.DarkRed;
                break;
            default:
                color = ConsoleColor.White;
                break;
        }
        return color;
    }

    static void Main()
    {
        Console.WriteLine("1. Print N numbers form [1...N] .\n");
        Console.Write("Numbers to print :");
        int numbers = int.Parse(Console.ReadLine());
        Random random = new Random();

        for (int i = 1; i <= numbers; i++)
        {
            Console.ForegroundColor = GetRandomColor(random.Next(1, 6));
            Console.WriteLine(i);
            Console.ForegroundColor = ConsoleColor.White;
        }
    }
}
